﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000B33 RID: 2867
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MissionEventRewardScNotify : IMessage<MissionEventRewardScNotify>, IMessage, IEquatable<MissionEventRewardScNotify>, IDeepCloneable<MissionEventRewardScNotify>, IBufferMessage
	{
		// Token: 0x1700242E RID: 9262
		// (get) Token: 0x06008040 RID: 32832 RVA: 0x001561D1 File Offset: 0x001543D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MissionEventRewardScNotify> Parser
		{
			get
			{
				return MissionEventRewardScNotify._parser;
			}
		}

		// Token: 0x1700242F RID: 9263
		// (get) Token: 0x06008041 RID: 32833 RVA: 0x001561D8 File Offset: 0x001543D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MissionEventRewardScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002430 RID: 9264
		// (get) Token: 0x06008042 RID: 32834 RVA: 0x001561EA File Offset: 0x001543EA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MissionEventRewardScNotify.Descriptor;
			}
		}

		// Token: 0x06008043 RID: 32835 RVA: 0x001561F1 File Offset: 0x001543F1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MissionEventRewardScNotify()
		{
		}

		// Token: 0x06008044 RID: 32836 RVA: 0x001561FC File Offset: 0x001543FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MissionEventRewardScNotify(MissionEventRewardScNotify other) : this()
		{
			this.missionEventId_ = other.missionEventId_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06008045 RID: 32837 RVA: 0x00156248 File Offset: 0x00154448
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MissionEventRewardScNotify Clone()
		{
			return new MissionEventRewardScNotify(this);
		}

		// Token: 0x17002431 RID: 9265
		// (get) Token: 0x06008046 RID: 32838 RVA: 0x00156250 File Offset: 0x00154450
		// (set) Token: 0x06008047 RID: 32839 RVA: 0x00156258 File Offset: 0x00154458
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MissionEventId
		{
			get
			{
				return this.missionEventId_;
			}
			set
			{
				this.missionEventId_ = value;
			}
		}

		// Token: 0x17002432 RID: 9266
		// (get) Token: 0x06008048 RID: 32840 RVA: 0x00156261 File Offset: 0x00154461
		// (set) Token: 0x06008049 RID: 32841 RVA: 0x00156269 File Offset: 0x00154469
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x0600804A RID: 32842 RVA: 0x00156272 File Offset: 0x00154472
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MissionEventRewardScNotify);
		}

		// Token: 0x0600804B RID: 32843 RVA: 0x00156280 File Offset: 0x00154480
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MissionEventRewardScNotify other)
		{
			return other != null && (other == this || (this.MissionEventId == other.MissionEventId && object.Equals(this.Reward, other.Reward) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600804C RID: 32844 RVA: 0x001562D0 File Offset: 0x001544D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MissionEventId != 0U)
			{
				num ^= this.MissionEventId.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600804D RID: 32845 RVA: 0x00156325 File Offset: 0x00154525
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600804E RID: 32846 RVA: 0x0015632D File Offset: 0x0015452D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600804F RID: 32847 RVA: 0x00156338 File Offset: 0x00154538
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MissionEventId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.MissionEventId);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(66);
				output.WriteMessage(this.Reward);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008050 RID: 32848 RVA: 0x00156394 File Offset: 0x00154594
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MissionEventId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MissionEventId);
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008051 RID: 32849 RVA: 0x001563EC File Offset: 0x001545EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MissionEventRewardScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MissionEventId != 0U)
			{
				this.MissionEventId = other.MissionEventId;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008052 RID: 32850 RVA: 0x00156454 File Offset: 0x00154654
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06008053 RID: 32851 RVA: 0x00156460 File Offset: 0x00154660
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 66U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
					}
				}
				else
				{
					this.MissionEventId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400310E RID: 12558
		private static readonly MessageParser<MissionEventRewardScNotify> _parser = new MessageParser<MissionEventRewardScNotify>(() => new MissionEventRewardScNotify());

		// Token: 0x0400310F RID: 12559
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003110 RID: 12560
		public const int MissionEventIdFieldNumber = 5;

		// Token: 0x04003111 RID: 12561
		private uint missionEventId_;

		// Token: 0x04003112 RID: 12562
		public const int RewardFieldNumber = 8;

		// Token: 0x04003113 RID: 12563
		private ItemList reward_;
	}
}
